package com.qq2008.game.mojie.service.impl;

import com.qq2008.game.mojie.jdo.Role;
import com.qq2008.game.mojie.mapper.RoleMapper;
import com.qq2008.game.mojie.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleMapper mapper;

    private List<Role> list;


    @Override
    public Role get(int id) {
        return mapper.get(id);
    }

    @Override
    public List<Role> list(Map<String, Object> param) {
        return mapper.list(param);
    }

    @Override
    public int insert(Role moMonster) {
        return mapper.insert(moMonster);
    }

    @Override
    public int update(Role moMonster) {
        return mapper.update(moMonster);
    }

    @Override
    public int updateByUserId(Role role) {
        return mapper.updateByUserId(role);
    }

    @Override
    public int update(Map<String, Object> param, Map<String, Object> data) {
        return mapper.update(param, data);
    }

    @Override
    public int delete(int id) {
        return mapper.delete(id);
    }

    @Override
    public int delete(Map<String, Object> param) {
        return mapper.delete(param);
    }

    @Override
    public int count(Map<String, Object> param) {
        return mapper.count(param);
    }
}
